package com.carrey.carrey_utils;

public enum FileSizeUnit {

	
	// FileSizeUnit 枚举类
    B(1, "B"),
    K(1024, "KB"),
    M(1024 * 1024, "MB"),
    G(1024 * 1024 * 1024, "GB"),
    T(1024 * 1024 * 1024 * 1024, "TB"),
    P(1024 * 1024 * 1024 * 1024 * 1024, "PB");
	
	private Integer code;
	
	private String value;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	private FileSizeUnit(Integer code, String value) {
		this.code = code;
		this.value = value;
	}
	
	
}
